/**
 * 路由配置
 *
 * @版权所有 rem.studio
 */
export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', name: 'login', component: './User/Login' },
      { path: '/user/register', name: 'register', component: './User/Register' },
      { path: '/user/forgotpassword', name: 'forgotpassword', component: './User/ForgotPassword' },
      {
        path: '/user/register-result',
        name: 'register.result',
        component: './User/RegisterResult',
      },
      {
        path: '/user/forgotpassword-result',
        name: 'forgotpassword.result',
        component: './User/ForgotPasswordResult',
      },
      { component: '404' },
    ],
  },
  // datascreen
  {
    path: "/ds",
    component: "../layouts/DataScreenLayout",
    routes: [
      {
        path: "/ds/datascreen",
        name: "datascreen",
        component: "./DataScreen/index"
      }
    ]
  },
  // 全域网关
  {
    path: "/gateway",
    component: "../layouts/GatewayLayout",
    routes: [
      {
        path: "/gateway/home",
        name: "gloading",
        component: "./Gateway/index"
      }
    ]
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    routes: [
      { path: '/', redirect: '/home/workbench' },
      {
        path: '/home',
        name: 'home',
        routes: [
          {
            path: '/home/workbench',
            name: 'workbench',
            component: './Home/Workbench',
            // component: './CrowdDataMerger/CrowdDataReport/index',
          },
          {
            path: '/home/mynotification',
            name: 'mynotification',
            component: './Home/MyNotification',
          },
        ],
      },
      {
        path: '/authority',
        name: 'authority',
        routes: [
          {
            path: '/authority/sysrole',
            name: 'sysrole',
            component: './Admin/SysRole',
          },
          {
            path: '/authority/sysurl',
            name: 'sysurl',
            component: './Admin/SysUrl',
          },
          {
            path: '/authority/datapermission',
            name: 'datapermission',
            component: './Admin/DataPermission',
          },
        ],
      },
      {
        path: '/admin',
        name: 'admin',
        routes: [
          {
            path: '/admin/sysuser',
            name: 'sysuser',
            component: './Admin/SysUser',
          },
          {
            path: '/admin/sysmenu',
            name: 'sysmenu',
            component: './Admin/SysMenu',
          },
          {
            path: '/admin/sysorg',
            name: 'sysorg',
            component: './Admin/SysOrg',
          },
          {
            path: '/admin/sysdict',
            name: 'sysdict',
            component: './Admin/SysDict',
          },
          {
            path: '/admin/sysregion',
            name: 'sysregion',
            component: './Admin/SysRegion',
          },
          {
            path: '/admin/sysparam',
            name: 'sysparam',
            component: './Admin/SysParam',
          },
          {
            path: '/admin/notification',
            name: 'notification',
            component: './Admin/Notification',
          },
          {
            path: '/admin/appclient',
            name: 'appclient',
            component: './Admin/AppClient',
          },
        ],
      },
      // 数据看板
      {
        name: 'databoard',
        path: '/databoard',
        routes: [
          {
            name: 'dataview',
          },
        ],
      },
      {
        path: '/file',
        name: 'file',
        routes: [
          {
            path: '/file/upload-download',
            name: 'uploaddownload',
            component: './File/File',
          },
        ],
      },
      {
        path: '/chart',
        name: 'chart',
        routes: [
          {
            path: '/chart/analysis',
            name: 'analysis',
            component: './Chart/Analysis',
          },
          {
            path: '/chart/monitor',
            name: 'monitor',
            component: './Chart/Monitor',
          },
          {
            path: '/chart/groupchart',
            name: 'groupchart',
            component: './Chart/GroupChart',
          },
        ],
      },
      {
        path: '/devtool',
        name: 'devtool',
        routes: [
          {
            path: '/devtool/generator',
            name: 'generator',
            component: './DevTool/Generator',
          },
          {
            path: '/devtool/formgenerator',
            name: 'formgenerator',
            component: './DevTool/FormGenerator',
          },
        ],
      },
      {
        path: '/monitors',
        name: 'monitors',
        routes: [
          {
            name: 'sentinel',
          },
          {
            name: 'nacos',
          },
          {
            name: 'swagger',
          },
        ],
      },
      // 项目管理
      {
        path: './project',
        name: 'project',
        routes: [
          // 进度管理
          {
            path: '/project/management',
            name: 'management',
            component: './Project/index',
          },
          // 项目日志
          {
            path: '/project/journal',
            name: 'journal',
            component: './Project/Journal/index',
          },
        ],
      },
      {
        path: '/exception',
        name: 'exception',
        routes: [
          {
            path: '/exception/403',
            name: 'not-permission',
            component: './Exception/Exception403',
          },
          {
            path: '/exception/404',
            name: 'not-find',
            component: './Exception/Exception404',
          },
          {
            path: '/exception/500',
            name: 'server-error',
            component: './Exception/Exception500',
          },
        ],
      },
      {
        path: '/systeminit',
        name: 'systeminit',
        routes: [
          {
            path: '/systeminit/orgsetting',
            name: 'orgsetting',
            component: './SystemInit/OrgSetting/index',
          },
          {
            path: '/systeminit/usersetting',
            name: 'usersetting',
            component: './SystemInit/UserSetting/index',
          },
          {
            path: '/systeminit/articlesetting',
            name: 'articlesetting',
            component: './SystemInit/ArticleSetting/index',
          },
          {
            path: '/systeminit/administrativeOfficesManagement',
            name: 'administrativeOfficesManagementN',
            component: './SystemInit/AdministrativeOfficesManagement/index',
          },
        ],
      },
      {
        path: '/datamerger',
        name: 'datamerger',
        routes: [
          {
            path: '/datamerger/initialdatareporting',
            name: 'initialdatareporting',
            component: './DataMerger/InitialDataReporting/index',
          },
          {
            path: '/datamerger/initialdatareportingflib',
            name: 'initialdatareportingflib',
            component: './DataMerger/InitialDataReportingFlib/index',
          },
          {
            path: '/datamerger/detaileddatareporting',
            name: 'detaileddatareporting',
            component: './DataMerger/DetailedDataReporting/index',
          },
          {
            path: '/datamerger/detaileddatareportingflib',
            name: 'detaileddatareportingflib',
            component: './DataMerger/DetailedDataReportingFlib/index',
          },
          {
            path: '/datamerger/totalnumberofclinics',
            name: 'totalnumberofclinics',
            component: './DataMerger/TotalNumberofClinics/index',
          },
        ],
      },
      {
        path: '/subscriberdata',
        name: 'subscriberdata',
        routes: [
          {
            path: '/subscriberdata/settingpassword',
            name: 'settingpassword',
            component: './SubscriberData/SettingPassword/index',
          },
        ],
      },
      {
        path: '/mancenter',
        name: 'mancenter',
        routes: [
          {
            path: '/mancenter/trainingtutorial',
            name: 'trainingtutorial',
            component: './ManCenter/TrainingTutorial/index',
          },
          {
            path: '/mancenter/faq',
            name: 'faq',
            component: './ManCenter/Faq/index',
          },
        ],
      },
      {
        path: '/datastatistics',
        name: 'datastatistics',
        routes: [
          {
            path: '/datastatistics/gastroscopetotalstatistics',
            name: 'gastroscopetotalstatistics',
            component: './DataStatistics/GastroscopeTotalStatistics/index',
          },
          {
            path: '/datastatistics/reportprogress',
            name: 'reportprogress',
            component: './DataStatistics/ReportProgress/index',
          },
          {
            path: '/datastatistics/monthlyschedule',
            name: 'monthlyschedule',
            component: './DataStatistics/MonthlySchedule/index',
          },
          {
            path: '/datastatistics/netreportprogress',
            name: 'netreportprogress',
            component: './DataStatistics/NetReportProgress/index',
          },
        ],
      },
      //系统初始    
      {
        path: '/systemInitialization',
        name: 'systemInitialization',
        routes: [
          {
            path: '/systemInitialization/administrativeOfficesManagement',
            name: 'administrativeOfficesManagement',
            component: './SystemInitialization/AdministrativeOfficesManagement/index',
          },
          {
            path: '/systemInitialization/userManagement',
            name: 'userManagement',
            component: './SystemInitialization/UserManagement/index',
          },
        ],
      },
      //项目管理
      {
        path: '/projectadministration',
        name: 'projectadministration',
        routes: [
          {
            path: '/projectadministration/taskAllocation',
            name: 'taskAllocation',
            component: './Projectadministration/TaskAllocation/index',
          },
        ],
      },

      //数据归集
      {
        path: '/crowdDataMerger',
        name: 'crowdDataMerger',
        routes: [
          {
            path: '/crowdDataMerger/personalInformation',
            name: 'personalInformation',
            component: './CrowdDataMerger/PersonalInformation/index',
          },
          {
            path: '/crowdDataMerger/crowdDataReport',
            name: 'crowdDataReport',
            component: './CrowdDataMerger/CrowdDataReport/index',
          },
          {
            path: '/crowdDataMerger/crowdDataReportAdd',
            name: 'crowdDataReportAdd',
            component: './CrowdDataMerger/CrowdDataReport/AddButton/index',
          },
          {
            path: '/crowdDataMerger/followUpList',
            name: 'followUpList',
            component: './CrowdDataMerger/FollowUpList/index',
          },
          {
            path: '/crowdDataMerger/treatmentList',
            name: 'treatmentList',
            component: './CrowdDataMerger/TreatmentList/index',
          },
          {
            path: '/crowdDataMerger/plannedFollowUp',
            name: 'plannedFollowUp',
            component: './CrowdDataMerger/PlannedFollowUp/index',
          },
          {
            path: '/crowdDataMerger/riskFactor',
            name: 'riskFactor',
            component: './CrowdDataMerger/RiskFactor/index',
          },
        ],
      },

      //正式库    
      {
        path: '/formalLibrary',
        name: 'formalLibrary',
        routes: [

          {
            path: '/formalLibrary/formalDatabase',
            name: 'formalDatabase',
            component: './FormalLibrary/FormalDatabase/index',
          },
          {
            path: '/formalLibrary/followUpFormalDatabase',
            name: 'followUpFormalDatabase',
            component: './FormalLibrary/FollowUpFormalDatabase/index',
          },
          {
            path: '/formalLibrary/therapeuticFormalPool',
            name: 'therapeuticFormalPool',
            component: './FormalLibrary/TherapeuticFormalPool/index',
          },
        ],
      },
      //数据统计
      {
        path: '/dataStatisticsWork',
        name: 'dataStatisticsWork',
        routes: [
          {
            path: '/dataStatisticsWork/workReport',
            name: 'workReport',
            component: './DataStatisticsWork/WorkReport/index',
          },
        ],
      },
      //年报总结    
      {
        path: '/summaryfAnnualReport',
        name: 'summaryfAnnualReport',
        routes: [

          {
            path: '/summaryfAnnualReport/photoReport',
            name: 'photoReport',
            component: './SummaryfAnnualReport/PhotoReport/index',
          },
          {
            path: '/summaryfAnnualReport/photoManagement',
            name: 'photoManagement',
            component: './SummaryfAnnualReport/PhotoManagement/index',
          },
          {
            path: '/summaryfAnnualReport/workUummary',
            name: 'workUummary',
            component: './SummaryfAnnualReport/WorkUummary/index',

          },
        ],
      },
      //二维码
      {
        path: '/qRCodeManagement',
        name: 'qRCodeManagement',
        routes: [
          {
            path: '/qRCodeManagement/riskFactorQRCodeManagement',
            name: 'riskFactorQRCodeManagement',
            component: './QRCodeManagement/RiskFactorQRCodeManagement/index',
          },
        ],
      },

      //数据展示
      {
        path: '/dataPresentation',
        name: 'dataPresentation',
        routes: [
          {
            path: '/dataPresentation/QRCode',
            name: 'QRCode',
            component: './DataPresentation/QRCode/index',
          },
        ],
      },

      {
        component: '404',
      },
    ],
  },
];
